QuadraticDirect Encoding vs. LinearOrderEncoding A One-out-of-N Transformation on CNF

نویسندگان

  • Norbert Manthey
  • Peter Steinke
چکیده

The translation from finite CSPs into SAT has been studied intensively. Common encodings for variable domains are the compact, direct and order encoding. The direct encoding needs a quadratic number of clauses for encoding a domain in SAT whereas the order encoding uses only linearly many. We introduce a conversion for domains from the direct encoding to the order encoding on the CNF level by extracting the encoded domains and replacing the related clauses by the order encoding and a mapping between them. The transformation keeps the model for the original formula and transforming domains with more than 8 elements results in less clauses in the formula. Experiments showed that our SAT solver riss can solve the transformed instances with domains greater than 7 from the SAT Competition 2009 Application with 3.4% less run time. On 105 crafted instances riss could solve 55 instead of 58 instances, but the average run time decreased by 30%. Results for PrecoSAT, clasp and march hi will be presented as well, showing that the transformation boosts the performance of CDCL solvers.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Towards an Optimal CNF Encoding of Boolean Cardinality Constraints

We consider the problem of encoding Boolean cardinality constraints in conjunctive normal form (CNF). Boolean cardinality constraints are formulae expressing that at most (resp. at least) k out of n propositional variables or formulae are true. We present a unifying framework for a whole family of such encodings encompassing previously proposed solutions. We give two novel encodings that improv...

متن کامل

A Pigeon-Hole Based Encoding of Cardinality Constraints

In this paper, we propose a new encoding of the cardinality constraint ∑i=1 xi > b. It makes an original use of the general formulation of the Pigeon-Hole principle to derive a formula in conjunctive normal form (CNF). Our Pigeon-Hole based CNF encoding can be seen as a nice and simple way to express the semantic of the cardinality constraint, that can be defined as how to put b pigeons into n ...

متن کامل

New Encoding for Translating Pseudo-Boolean Constraints into SAT

A Pseudo-Boolean (PB) constraint is a linear arithmetic constraint over Boolean variables. PB constraints are and widely used in declarative languages for expressing NP-hard search problems. While there are solvers for sets of PB constraints, there are also reasons to be interested in transforming these to propositional CNF formulas, and a number of methods for doing this have been reported. We...

متن کامل

A New SAT Encoding of the At-Most-One Constraint

In this paper, we study how to encode the at-most-one (AMO) constraint in conjunctive normal form (CNF). The AMO constraint means that at most one out of n propositional variables is allowed to be true. We present a new AMO encoding that improves on the existing one. The logarithmic bitwise AMO encoding by Frisch et al. requires log n auxiliary variables and n log n clauses. Sinz’s sequential A...

متن کامل

A Lower Bound on CNF Encodings of the At-Most-One Constraint

Constraint “at most one” is a basic cardinality constraint which requires that at most one of its n boolean inputs is set to 1. This constraint is widely used when translating a problem into a conjunctive normal form (CNF) and we investigate its CNF encodings suitable for this purpose. An encoding differs from a CNF representation of a function in that it can use auxiliary variables. We are esp...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2011